/**
* ...
* @author Default
* @version 0.1
*/

package org.anivision {
	
	import flash.display.DisplayObjectContainer;
	import flash.events.*;
	import flash.net.*;
	import flash.filesystem.File;
	import flash.filesystem.FileMode;
	import flash.filesystem.FileStream;
	import flash.net.FileFilter;

	import org.anivision.*;
	
	public class AirMain extends AppMain {
		
		public function AirMain(owner:DisplayObjectContainer) {
			super(owner);
			
		}
		
		public override function get appPath():String {
			return '';
		}

		public override function openFile(path:String, onComplete:Function = null, onProgress:Function = null):void {
			var loader:URLLoader = new URLLoader();
			var request:URLRequest = new URLRequest(path);
			
			if ( onComplete != null )
				loader.addEventListener(Event.COMPLETE, onComplete);
				
			if ( onProgress != null )
				loader.addEventListener(ProgressEvent.PROGRESS, onProgress);
				
			loader.load(request);
		}
	}
	
}
